package com.mdc.mansion.dataaccess.modules.order.entity;

import com.mdc.mansion.dataaccess.common.persistence.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;
/**
 * 餐厅订单信息持久类
 * @author mingdongc
 * @version 2018-01-01
 */
public class RestaurantOrder extends BaseEntity<RestaurantOrder>{
    
    

	private static final long serialVersionUID = 1L;
    private String restaurantId;
    private String restaurantTableId;
    private String serialNum;
    private Integer billNo;
    private String name;
    private String englishName;
    private String chineseName;
    private BigDecimal totalPrice;
    private BigDecimal totalDiscountPrice;
    private BigDecimal rebate;
    private BigDecimal abatement;
    private BigDecimal servicePrice;
    private BigDecimal serviceTariffing;
    private BigDecimal receivablePrice;
    private BigDecimal actualReceivePrice;
    private BigDecimal refundPrice;
    private Integer orderStatus;
    private String restaurantStaffCashierId;
    private Date cashierTime;
    private String remark;
    private String payFlag;
    private String tradeNo;

    
    
    
    public String getPayFlag() {
        return payFlag;
    }
    
    public void setPayFlag(String payFlag) {
        this.payFlag = payFlag;
    }
    
    public String getTradeNo() {
        return tradeNo;
    }
    
    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }
    
    public String getRestaurantId(){
        return restaurantId;
    }

    public void setRestaurantId(String restaurantId){
        this.restaurantId=restaurantId;
    }

    public String getRestaurantTableId(){
        return restaurantTableId;
    }

    public void setRestaurantTableId(String restaurantTableId){
        this.restaurantTableId=restaurantTableId;
    }

    public String getSerialNum(){
        return serialNum;
    }

    public void setSerialNum(String serialNum){
        this.serialNum=serialNum;
    }

    public Integer getBillNo(){
        return billNo;
    }

    public void setBillNo(Integer billNo){
        this.billNo=billNo;
    }

    public String getName(){
        return name;
    }

    public void setName(String name){
        this.name=name;
    }

    public String getEnglishName(){
        return englishName;
    }

    public void setEnglishName(String englishName){
        this.englishName=englishName;
    }

    public String getChineseName(){
        return chineseName;
    }

    public void setChineseName(String chineseName){
        this.chineseName=chineseName;
    }

    public BigDecimal getTotalPrice(){
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice){
        this.totalPrice=totalPrice;
    }

    public BigDecimal getTotalDiscountPrice(){
        return totalDiscountPrice;
    }

    public void setTotalDiscountPrice(BigDecimal totalDiscountPrice){
        this.totalDiscountPrice=totalDiscountPrice;
    }

    public BigDecimal getRebate(){
        return rebate;
    }

    public void setRebate(BigDecimal rebate){
        this.rebate=rebate;
    }

    public BigDecimal getAbatement(){
        return abatement;
    }

    public void setAbatement(BigDecimal abatement){
        this.abatement=abatement;
    }

    public BigDecimal getServicePrice(){
        return servicePrice;
    }

    public void setServicePrice(BigDecimal servicePrice){
        this.servicePrice=servicePrice;
    }

    public BigDecimal getServiceTariffing(){
        return serviceTariffing;
    }

    public void setServiceTariffing(BigDecimal serviceTariffing){
        this.serviceTariffing=serviceTariffing;
    }

    public BigDecimal getReceivablePrice(){
        return receivablePrice;
    }

    public void setReceivablePrice(BigDecimal receivablePrice){
        this.receivablePrice=receivablePrice;
    }

    public BigDecimal getActualReceivePrice(){
        return actualReceivePrice;
    }

    public void setActualReceivePrice(BigDecimal actualReceivePrice){
        this.actualReceivePrice=actualReceivePrice;
    }

    public BigDecimal getRefundPrice(){
        return refundPrice;
    }

    public void setRefundPrice(BigDecimal refundPrice){
        this.refundPrice=refundPrice;
    }

    public Integer getOrderStatus(){
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus){
        this.orderStatus=orderStatus;
    }

    public String getRestaurantStaffCashierId(){
        return restaurantStaffCashierId;
    }

    public void setRestaurantStaffCashierId(String restaurantStaffCashierId){
        this.restaurantStaffCashierId=restaurantStaffCashierId;
    }

    public Date getCashierTime(){
        return cashierTime;
    }

    public void setCashierTime(Date cashierTime){
        this.cashierTime=cashierTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    //当前订单状态 0：客户点餐 1：服务员确认 2：财务结账   3:撤单
    public enum ORDER_STATUS{
        CUSTOMER_ORDER("客户点餐",0),
        WAITER_SURE("服务员确认",1),
        CHECK_OUT("财务结账",2),
        REVOCATION("撤单",3);
        private String name;
        private int val;
        ORDER_STATUS(String name, int val) {
            this.name = name;
            this.val = val;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getVal() {
            return val;
        }

        public void setVal(int val) {
            this.val = val;
        }
    }

}